gh-107972: Argument Clinic: Ensure a C basename is provided after 'as'#107973
gh-107972: Argument Clinic: Ensure a C basename is provided after 'as'#107973erlend-aasland merged 6 commits intopython:mainfrom
Conversation
AlexWaygood
left a comment
There was a problem hiding this comment.
+1 to Adam's suggestions, but otherwise this LGTM. It appears we do fail() currently for at least the second case you're adding a test for, but the error message is pretty nonsensical currently:
Couldn't find existing function 'foo2'!
Well, if you'd defined |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Yup, I gathered. Maybe we should do that in the test, actually, so that the only erroneous thing in the test case is the one we're explicitly testing that clinic catches? |
|
Try this weird input; clinic accepts it on /*[clinic input]
output everything block
foo2
[clinic start generated code]*/
/*[clinic input]
output everything block
foo as = foo2
[clinic start generated code]*/ |
And with that in mind, we should probably adjust the test case to look exactly like that. |
I did not read this until now; we came to the same conclusion :) |
|
If it won't backport cleanly, I'm inclined to not backport it. |
|
Thanks for the reviews! |
|
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
|
Sorry, @erlend-aasland, I could not cleanly backport this to |
|
Sorry, @erlend-aasland, I could not cleanly backport this to |
|
…er 'as' (python#107973) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.